<template>
  <el-aside>
      <el-menu
            :default-active="activeMenu"
            :collapse="isCollapse"
            :router="false"
            :unique-opened="true"
            :collapse-transition="false"
          >
            <SubMenu :menuList="menuListJson" />
          </el-menu>
    </el-aside>
</template>

<script setup>
import { computed } from 'vue'
import SubMenu from './SubMenu.vue'
import menuListJson from './menu.json'

const isCollapse = computed(() => globalStore.isCollapse)

</script>

<style scoped lang="scss">
.fe-log-container {
  width: 100%;
  height: 100%;
  :deep(.fe-log-aside) {
    z-index: 5;
    width: auto;
    background-color: var(--fe-log-menu-bg-color);
    border-right: 1px solid var(--fe-log-border-color-light);
    .aside-box {
      display: flex;
      flex-direction: column;
      height: 100%;
      transition: width 0.3s ease;
      .fe-log-scrollbar {
        height: calc(100% - 55px);
        .fe-log-menu {
          width: 100%;
          overflow-x: hidden;
          border-right: none;
        }
      }
      .logo {
        box-sizing: border-box;
        height: 55px;
        cursor: pointer;
        .logo-img {
          width: 28px;
          margin-right: 6px;
          border-radius: 50%;
          object-fit: contain;
        }
        .logo-text {
          font-size: 21.5px;
          font-weight: bold;
          color: var(--fe-log-logo-text-color);
          white-space: nowrap;
        }
      }
    }
  }
  .fe-log-header {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 55px;
    padding: 0 15px;
    background-color: var(--fe-log-bg-color);
    border-bottom: 1px solid var(--fe-log-border-color-light);
    :deep(.tool-bar-ri) {
      .toolBar-icon,
      .username {
        color: var(--fe-log-text-color-primary);
      }
    }
  }
}
</style>
